2 #include "MFCSafeActiveX.h"
3 #include "MFCSafeActiveXPropPage.h"
9 IMPLEMENT_DYNCREATE(CMFCSafeActiveXPropPage
, COlePropertyPage
)
13 BEGIN_MESSAGE_MAP(CMFCSafeActiveXPropPage
, COlePropertyPage
)
17 // Initialize class factory and guid
18 IMPLEMENT_OLECREATE_EX(CMFCSafeActiveXPropPage
, "MFCSAFEACTIVEX.MFCSafeActiveXPropPage.1",
19 0xc8f3d57c, 0x42eb, 0x41f8, 0xb1, 0x2b, 0x56, 0xe5, 0x9e, 0xd0, 0x52, 0x43)
22 // CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPageFactory::UpdateRegistry -
23 // Adds or removes system registry entries for CMFCSafeActiveXPropPage
24 BOOL
CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPageFactory::UpdateRegistry(BOOL bRegister
)
27 return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
28 m_clsid
, IDS_MFCSAFEACTIVEX_PPG
);
30 return AfxOleUnregisterClass(m_clsid
, NULL
);
34 // CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPage - Constructor
35 CMFCSafeActiveXPropPage::CMFCSafeActiveXPropPage() :
36 COlePropertyPage(IDD
, IDS_MFCSAFEACTIVEX_PPG_CAPTION
)
41 // CMFCSafeActiveXPropPage::DoDataExchange - Moves data between page and properties
42 void CMFCSafeActiveXPropPage::DoDataExchange(CDataExchange
* pDX
)
44 DDP_PostProcessing(pDX
);
48 // CMFCSafeActiveXPropPage message handlers